﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using Newtonsoft.Json;
using SqlSugar;

namespace Aioms.Models
{
    [SugarTable("oplog")]
    public class OpLog
    {
        public OpLog() {
            this.Created = DateTime.Now;
            this.Updated = DateTime.Now;
        }

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }

        [SugarColumn(ColumnName = "eid")]
        public long Eid { get; set; }

        [SugarColumn(ColumnName = "message")]
        public string Message { get; set; }

        [SugarColumn(ColumnName = "created")]
        public DateTime Created { get; set; }

        [SugarColumn(ColumnName = "updated")]
        public DateTime Updated { get; set; }
    }
}
